﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace Unis.FMS.Platform.Order.Domain {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "doc_dpt_task_steps_wzl20240802", DisableSyncStructure = true)]
	public partial class DocDptTaskStepsWzl20240802 {

		[JsonProperty, Column(Name = "id", DbType = "int", IsPrimary = true, IsIdentity = true)]
		public int Id { get; set; }

		/// <summary>
		/// 是否可以统一操作 0否 1是
		/// </summary>
		[JsonProperty, Column(Name = "act_together", DbType = "tinyint")]
		public sbyte ActTogether { get; set; } = 0;

		[JsonProperty, Column(Name = "actual_create_time", DbType = "datetime")]
		public DateTime ActualCreateTime { get; set; } = DateTime.Parse("1970-01-01 00:00:00");

		[JsonProperty, Column(Name = "actual_update_time", DbType = "datetime")]
		public DateTime ActualUpdateTime { get; set; } = DateTime.Parse("1970-01-01 00:00:00");

		/// <summary>
		/// 创建人
		/// </summary>
		[JsonProperty, Column(Name = "create_user", StringLength = 50, IsNullable = false)]
		public string CreateUser { get; set; }

		/// <summary>
		/// 创建人
		/// </summary>
		[JsonProperty, Column(Name = "created_by", DbType = "int")]
		public int CreatedBy { get; set; } = 0;

		/// <summary>
		/// 创建时间
		/// </summary>
		[JsonProperty, Column(Name = "created_time", DbType = "datetime", InsertValueSql = "CURRENT_TIMESTAMP")]
		public DateTime CreatedTime { get; set; }

		/// <summary>
		/// 是否删除（0.正常 1.删除）;0.正常 1.删除
		/// </summary>
		[JsonProperty, Column(Name = "is_del", DbType = "int")]
		public int IsDel { get; set; } = 0;

		/// <summary>
		/// 执行顺序
		/// </summary>
		[JsonProperty, Column(Name = "sequence", DbType = "int")]
		public int Sequence { get; set; } = 0;

		/// <summary>
		/// 编号
		/// </summary>
		[JsonProperty, Column(Name = "step_code", StringLength = 50, IsNullable = false)]
		public string StepCode { get; set; }

		/// <summary>
		/// 描述
		/// </summary>
		[JsonProperty, Column(Name = "step_desc", IsNullable = false)]
		public string StepDesc { get; set; }

		/// <summary>
		/// 动作名称
		/// </summary>
		[JsonProperty, Column(Name = "step_name", StringLength = 100, IsNullable = false)]
		public string StepName { get; set; }

		/// <summary>
		/// task no
		/// </summary>
		[JsonProperty, Column(Name = "task_no", StringLength = 50, IsNullable = false)]
		public string TaskNo { get; set; }

		/// <summary>
		/// 模板id
		/// </summary>
		[JsonProperty, Column(Name = "template_id", DbType = "int")]
		public int TemplateId { get; set; } = 0;

		/// <summary>
		/// 更新人
		/// </summary>
		[JsonProperty, Column(Name = "update_by", DbType = "int")]
		public int UpdateBy { get; set; } = 0;

		/// <summary>
		/// 更新时间
		/// </summary>
		[JsonProperty, Column(Name = "update_time", DbType = "datetime", InsertValueSql = "CURRENT_TIMESTAMP")]
		public DateTime UpdateTime { get; set; }

		/// <summary>
		/// 修改人
		/// </summary>
		[JsonProperty, Column(Name = "update_user", StringLength = 50, IsNullable = false)]
		public string UpdateUser { get; set; }

	}

}
